package com.kingdee.shr.affair.web.handler;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.bos.metadata.entity.FilterInfo;
import com.kingdee.bos.metadata.entity.FilterItemInfo;
import com.kingdee.bos.metadata.query.util.CompareType;
import com.kingdee.eas.hr.affair.ResignItemCollection;
import com.kingdee.eas.hr.affair.ResignItemFactory;
import com.kingdee.eas.hr.affair.ResignItemInfo;
import com.kingdee.shr.base.syssetting.context.SHRContext;
import com.kingdee.shr.base.syssetting.exception.SHRWebException;
import com.kingdee.shr.base.syssetting.web.handler.ListHandler;

public class ResignItemListHandler extends ListHandler {
	@Override
	protected FilterInfo getDefaultFilter(HttpServletRequest request,
			HttpServletResponse response) throws SHRWebException {
		Map map = (Map) request.getAttribute("custom_params");
		String resign = map.get("resign").toString();
		FilterInfo filterCustom = new FilterInfo();
		FilterInfo filterDefault = super.getDefaultFilter(request, response);
		filterCustom.getFilterItems().add(
				new FilterItemInfo("bill.id", resign, CompareType.EQUALS));

		return filterCustom;
	}
}
